POV-Ray : Newsgroups : povray.general : tile-able hieghtfields : Re: tile-able hieghtfields Server Time
5 Aug 2024 00:26:52 EDT (-0400)
  Re: tile-able hieghtfields  
From: James Taylor
Date: 12 Jan 2003 14:57:45
Message: <3e21c8b9@news.povray.org>
I think I should have worded my post a little better, I don't actually want
a round box, just something that would allow for CSG with rounded edges
using heightfields for the normal (if all that makes sense).

I haven't had chance to play with the code (and prob. won't be able to until
nest week) but I'm guessing the function needs to be "shifted" along such
that edges match.
Which raises another question  - how is the heightfield mapped onto a
cyinder and sphere in the HF_* macros? take the cylinder{0,y} where does the
mapping start?

thanks
jim


"Warp" <war### [at] tagpovrayorg> wrote in message
news:3e1f70c0@news.povray.org...
> James Taylor <jim### [at] blueyondercouk> wrote:
> > The basic end result I'm aiming for is a round_box
>
>   I would say that the best and more versatile thing you could do is
> to create a HF_RoundBox() macro which creates a mesh-heightfield with
> the shape of a rounded box, with the same principle as the other HF_*
> macros.
>   Of course it's a rather laborious job to do, specially if you are
> not very strong at math, but by looking at how the other HF_* macros
> are made, it shouldn't be too difficult.
>   I would say that the HF_Sphere() macro is closest to what you want to
> do. Copying and modifying it might be the easiest way.
>
>   Of course you can ask the author of the macros to kindly help you... :)
>
> --
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.